const fs = require('fs');
const path = require('path');
const uploadToQiNiu = require('./qiniu')
const dir = '/Users/fjw/IdeaProjects/static/node/demo/tmp';
const domain = 'http://img.fundview.cn';
fs.readdir(dir, (err, files) => {

    files.forEach((item, index) => {

        const filePath = path.resolve(dir, item);

        if (item.indexOf('png') > 0) {

            const id = item.split('.')[0];


        }
    });
});